<template>
  <MdEditor v-model="text" />
  <el-button @click="sub">提交</el-button>
</template>

<script setup>
import { ref } from 'vue';
import { MdEditor } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';

const text = ref('Hello Editor!');

const sub = ()=>{
  console.log("打印文本结果");
  console.log(text.value);
}
</script>
